import request from "@/utils/request";

// 权益套餐分类列表
export function getAppQyPackageTypeList(query) {
  return request({
    url: "/app/getAppQyPackageTypeList",
    method: "get",
    params: query,
  });
}

// 权益套餐分类查询单条
export function getAppQyPackageTypeInfo(query) {
  return request({
    url: "/app/getAppQyPackageTypeInfo",
    method: "get",
    params: query,
  });
}

// 权益套餐分类-新增

export function addAppQyPackageType(data) {
  return request({
    url: "/app/addAppQyPackageType",
    method: "post",
    data,
  });
}

// 权益套餐分类-编辑

export function updateAppQyPackageType(data) {
  return request({
    url: "/app/updateAppQyPackageType",
    method: "post",
    data,
  });
}

// 权益套餐分类-删除

export function deleteAppQyPackageType(data) {
  return request({
    url: "/app/deleteAppQyPackageType",
    method: "post",
    data,
  });
}

export function selectCascader(query) {
  return request({
    url: "/app/selectCascader",
    method: "get",
    params: query,
  });
}
